package com.cy.pj.notice.dao.impl;

import com.cy.pj.notice.dao.NoticeJdbcTemplateDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@Component
@Repository //数据访问对象
public class NoticeJdbcTemplateDaoImpl implements NoticeJdbcTemplateDao {
    @Autowired
    private DataSource dataSource;

    @Override
    public void updateNotice(String sql, Object[] values) throws SQLException {

    }

    @Override
    public List<Map<String, Object>> selectNotices(String sql, Object[] values) throws SQLException {
        return null;
    }
}
